package com.rpcfx.server;

/**
 * @ProjectName: learning
 * @Package: com.rpcfx.server
 * @ClassName: ReflectiveBeanContainer
 * @Description:
 * @Date: 2021/11/11 10:48 下午
 * @Version: 1.0
 */
public class ReflectiveBeanContainer implements BeanContainer {
    @Override
    public <T> T getBean(Class<T> name) {
        try {
            return name.newInstance();
        } catch (IllegalAccessException e) {
            e.printStackTrace();
        } catch (InstantiationException e) {
            e.printStackTrace();
        }
        return null;
    }
}
